{% extends "base.html" %}

{% block header%}
<title>打包渠道包 配置编辑</title>
{% endblock %}

{% block content %}
{% with model_name='Task' url_prefix='/pack/task/pack_channel_task?task_type=6' %}
<div class="bar">
	<a>打包渠道包 管理</a> -> 打包渠道包 配置编辑
	<div class="buttons">
		<a  class="btn btn-app btn-grey btn-xs radius-4 pull-right submit"  />保存</a>
	</div>
</div>

<form action="{{url_prefix}}&id={{model.id}}" method="post">
	<table class="form2">
    <tr>
        <th>项目代号：</th>
        <td>
            <input type="text" name="proj_tag" value="{{model.project.pro_tag}}" readonly="readonly"/>
        </td>
	</tr>

	<tr>
        <th>平台：</th>
        <td>
            <input type="text" name="plat" value="{{plat}}" readonly="readonly"/>
        </td>
	</tr>
    <tr>
        <th>工程名：</th>
        <td>
            <input type="text" name="plugin_name" value="{{model.plugin_name}}" readonly="readonly"/>
        </td>
	</tr>
    <tr>
		<th>分支名称：</th>
        <td>
            <select name="branch_id">
                {% for v, n in branch_name_tuple %}
                    <option value="{{v}}">{{n}}</option>
                {% endfor %}
            </select>
        </td>
	</tr>
    <tr>
        <th>物料：</th>
        <td>
            <select name="param_folder">
                {% for param_folder in param_folder_lis %}
                    <option value="{{param_folder}}">{{param_folder}}</option>
                {% endfor %}
            </select>
        </td>
	</tr>
    <tr>
        <th>证书:</th>
        <td>
            <select name="provision_name">
                {% for v,n in model.PROVISION_TYPE %}
                    <option value="{{v}}" {% if model.state == v %}selected="selected"{% endif %}>{{n}}</option>
                {% endfor %}
            </select>
        </td>
    </tr>
    <tr>
        <th>APP包体：</th>
        <td>
            <select name="pack_type">
                <option value="1" selected="selected">分包</option>
                <option value="2">整包</option>
                <option value="3">程序包</option>
            </select>
        </td>
    </tr>
    <tr>
        <th>APP版本：</th>
        <td>
            <input type="text" name="package_version" oninput="value=value.replace(/[^\d\.]/g,'')" required="required"/>
        </td>
	</tr>

    <tr>
        <th>mobile版本：</th>
        <td>
            <input type="text" name="mobile_svn" oninput="value=value.replace(/[^\d]/g,'')" required="required"/>
        </td>
	</tr>
    <tr>
        <th>res版本：</th>
        <td>
            <input type="text" name="res_svn" oninput="value=value.replace(/[^\d]/g,'')" required="required"/>
        </td>
	</tr>
</table>
</form>
{% endwith %}
{% endblock %}